<script type="text/javascript">
$(function(){
	$(".create_access").mouseenter(function(){
 		$(this).addClass("hover");
 	});
 	$(".create_access").mouseleave(function(){
 		$(this).removeClass("hover");
 	});
});
</script>
<div class="container-fluid" style="height: 100%;overflow-y:scroll; ">
	<ol class="breadcrumb">
		<li><a href="../manager/index.json">首页</a></li>
		<li><a href="../message/material.json">素材管理</a></li>
		<li>图文消息</li>
	</ol>
	<div class='col-md-12'  id='pane0'>
		<div class='panel '>
			
			<div id="appmsgList" class="appmsg_list">
				<div class="appmsg_col">
					<span class="create_access" >
						 <i class="icon42_common add_gray"></i>
						 <a onclick="oneTuWen(0,'{:U('Message/oneTuWen')}')">
						 <i class="icon_appmsg_create"></i>
						 <strong>单图文消息</strong>
						 </a>
						 <a onclick="moreTuWen(0,'{:U('Message/moreTuWen')}')">
						 <i class="icon_appmsg_create multi"></i>
						 <strong>多图文消息</strong>
						 </a>
					</span>
<volist name="graphicList" id="graphic">
<if condition="($graphic.oneOrMore eq 1)">
<volist name="graphic['articles']" id="art">
								<div >
									<div class="appmsg " data-fileid="10013036" data-id="10013037">
										<div class="appmsg_content">
											<h4 class="appmsg_title">
												{$art.head_title }
											</h4>
											<div class="appmsg_info">
												<em class="appmsg_date">{$graphic.create_time }</em>
											</div>
											<div class="appmsg_thumb_wrp">
												<img class="appmsg_thumb" alt="" src="{:U('File/downLoad')}/id/{$art.img_id}">
											</div>
											<p class="appmsg_desc">{$art.summary }</p>
										</div>		
										<div class="appmsg_opr">
											<ul>
												<li class="appmsg_opr_item with2">
													<a class="js_edit" onclick="oneTuWen(this.id,'{:U('Message/oneTuWen')}')" href="javascript:void(0);" id="{$art.id}">
														<i class="icon18_common edit_gray">编辑</i>
													</a>
												</li>
												<li class="appmsg_opr_item with2 no_extra">
													<a class="js_del no_extra" onclick="deleteArticle(this.id,'{:U('Message/delete')}')" href="javascript:void(0);" id='{$art.id }' data-id="10013037">
													<i class="icon18_common del_gray">删除</i>
													</a>
												</li>
											</ul>
										</div>
									</div>
								</div>
							</volist>
<elseif condition="($graphic.oneOrMore eq 2)" />
					<div class="appmsg multi" data-fileid="10000000" data-id="10000005">
									<div class="appmsg_info">
										<em class="appmsg_date">{$graphic.create_time }</em>
									</div>
								<volist name="graphic['articles']" id="art">
									<div class="appmsg_content">
										<div class="appmsg_item" style="border-top: none">
											<img class="appmsg_thumb" alt="" src="{:U('File/downLoad')}/id/{$art.img_id}">
											<h4 class="appmsg_title">
												{$art.head_title }
											</h4>
										</div>
									</div>
								</volist>
									<div class="appmsg_opr">
										<ul>
											<li class="appmsg_opr_item with2">
												<a class="js_edit" href="javascript:void(0);" onclick="moreTuWen(this.id,'{:U('Message/moreTuWen')}')" id="{$graphic.id}">
													<i class="icon18_common edit_gray">编辑</i>
												</a>
											</li>
											<li class="appmsg_opr_item with2 no_extra">
												<a class="js_del no_extra" href="javascript:void(0);" onclick="deleteMoreTuWen(this.id,'{:U('Message/deleteMoreTuWen')}')" data-id="10000005" id="{$graphic.id}">
													<i class="icon18_common del_gray">删除</i>
												</a>
											</li>
										</ul>
									</div>
								</div>		
<else /> 
</if>  
					</volist>
				</div>
			</div>
		</div>
	</div>
</div>

<div id="deleteDialog" style="display: none;">
	<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>确定删除此素材？</p>
</div>